package com.lct.d16_extends_constructor2;

public class Test {
	public static void main(String[] args) {
		//子类调用父类构造器，初始化继承来自父类的部分数据
		Teacher t1 = new Teacher();
		t1.setName("张三");
		t1.setAge(15);
		t1.setSkill("JAva");
		System.out.println(t1.getName());
		System.out.println(t1.getSkill());
		System.out.println(t1.getAge());


		Teacher t2 = new Teacher("lct",23,"学java");
		System.out.println(t2.getAge());
		System.out.println(t2.getName());
		System.out.println(t2.getSkill());
	}
}
